<?php
$this->pageTitle = Lang::t('user.login.page.breadcrumbs');
$this->breadcrumbs[] = Lang::t('user.login.page.breadcrumbs');
?>

<h1><?php echo Lang::t('user.login.page.title'); ?></h1>

<div class='col-sm-5'>
    <?php
//$formConfig['htmlOptions']['class']='form-horizontal';
    $formConfig['htmlOptions']['role'] = 'form';
    ?>
    <?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>


    <span class="help-block"><?php echo Lang::t('user.login.form.note'); ?></span>

    <?php
    echo $form->alert($model, array(
        'errorMessageHtmlOptions' => array('class' => 'alert alert-danger'),
        'flashHtmlOptions' => array('class' => 'alert alert-'),
    ));
    ?>

    <div class="row form-group">
        <?php //echo $form->labelEx($model, 'username_'); ?>
        <label for="User_username_" class="required"><?php echo Lang::t('user.login.lbl.username'); ?> <span class="required">*</span></label>
        <?php echo $form->textField($model, 'username_', array('class' => 'form-control')); ?>
        <?php //echo $form->error($model,'username_');  ?>
    </div>
    <div class="row form-group">
        <?php echo $form->labelEx($model, 'password_'); ?>
        <?php echo $form->passwordField($model, 'password_', array('class' => 'form-control')); ?>
        <?php //echo $form->error($model,'password_');  ?>
    </div>
    <div class="row">
        <div class="form-group">
            <div class="checkbox">
                <label>
                    <?php echo $form->checkBox($model, 'rememberMe_'); ?>
                    <label for="User_rememberMe_"><?php echo Lang::t('user.login.lbl.rememberMe'); ?></label>
                    <?php //echo $form->labelEx($model, 'rememberMe_'); ?>
                    <?php //echo $form->error($model,'rememberMe_');  ?>
                </label>
            </div>
            <a href="<?php echo $this->recoveryUrl; ?>" class="btn btn-link"><?php echo Lang::t('user.login.lbl.recover.password'); ?></a>
            <?php //echo CHtml::link(Lang::t('user.login.lbl.recover.password'), $this->recoveryUrl); ?>
        </div>
    </div>

    <div class="form-group">
        <button type="submit" class="btn btn-default" /><?php echo Lang::t('user.login.btn.submit'); ?></button>
    </div>
    <?php $this->endWidget(); ?>
</div>

<div class="col-sm-5">


</div>